<?php
namespace app\api\validate;

use think\Validate;

class Clock extends Validate
{

    /**
     * 验证规则
     */
    protected $rule = [
        'image'                         => 'require',
        'address'                       => 'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'image.require'                   => '打卡图片不能为空',
        'address.require'                 => '打卡地不能为空',
    ];

    /**
     * 字段描述
     */
    protected $field = [

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'clock'  => ['image','address'],
    ];

}
